const approvalProcessState = {
  state: {
    approvalProcess: '', // 配腾人员
    associateData: [] ,
  },

  mutations: {
    setApprovalProcess: (state, newData) => {
      state.approvalProcess = newData
    },
    clearApprovalProcess: (state) => {
      state.approvalProcess = ''
    },
    setAssociateData: (state, newData) => {
      console.log(state,'newData')
      state.associateData = newData
    },
    clearAssociateData: (state) => {
      state.associateData = ''
    },
    deleteIdAssociateData: (state, ids) => {
      state.associateData = state.associateData.filter(item => item.id !== ids)
    }
  },

  actions: {},
}

export default approvalProcessState
